namespace Digitalmes.Domain.Sys;

/// <summary>
/// 角色互斥表
/// </summary>
[SugarTable("sys_role_conflict", "角色互斥表")]
public class SysRoleConflict : EntityTenantBase
{
    /// <summary>
    /// 角色A
    /// </summary>
    [SugarColumn(ColumnDescription = "角色A")]
    public long RoleA { get; set; }

    /// <summary>
    /// 角色A信息
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(RoleA))]
    public SysRole? RoleAObj { get; set; }

    /// <summary>
    /// 角色B
    /// </summary>
    [SugarColumn(ColumnDescription = "角色B")]
    public long RoleB { get; set; }

    /// <summary>
    /// 角色B信息
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(RoleB))]
    public SysRole? RoleBObj { get; set; }

    /// <summary>
    /// 互斥说明
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "互斥说明", Length = 128)]
    public string? Summary { get; set; }
}
